#include "engine.h"

Engine::Engine()
{
}

Engine::~Engine()
{
}

Character *Engine::create(const QVariantMap &args)
{
  _character = nullptr;
  _log.clear();
  init(args);
  Q_ASSERT(_character != nullptr);
  start();
  Character* result = _character;
  reset();
  return result;
}

QString Engine::log() const
{
  return _log;
}


